package com.amigo.online.consumer.video.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.pay.CreditCardPayDto;
import com.amigo.online.common.param.dto.pay.PayPromoteDto;

@FeignClient(name = "amigo-online-provider-video")
public interface PaymentService {

	@RequestMapping(value = "/pay/getClientoken", method = RequestMethod.GET)
	ResponseEntity<Response> getClientoken();

	@RequestMapping(value = "/pay/createOrder", method = RequestMethod.POST)
	ResponseEntity<Response> createOrder(PayPromoteDto dto);

	@RequestMapping(value = "/pay/creditCardPay", method = RequestMethod.POST)
	ResponseEntity<Response> creditCardPay(CreditCardPayDto dto);

}
